package com.ztorn.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.ztorn.common.core.annotation.Excel;
import com.ztorn.common.core.web.domain.BaseEntity;

/**
 * 数据备份记录
 */
public class WmsBackup extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 备份ID */
    private Long backupId;

    /** 备份名称 */
    @Excel(name = "备份名称")
    private String backupName;

    /** 备份路径 */
    @Excel(name = "备份路径")
    private String backupPath;

    /** 备份大小(MB) */
    @Excel(name = "备份大小(MB)")
    private Double backupSize;

    /** 备份状态（0进行中 1成功 2失败） */
    @Excel(name = "备份状态")
    private String status;

    /** 备份时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "备份时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date backupTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    // Getters and Setters
    public Long getBackupId() {
        return backupId;
    }

    public void setBackupId(Long backupId) {
        this.backupId = backupId;
    }

    public String getBackupName() {
        return backupName;
    }

    public void setBackupName(String backupName) {
        this.backupName = backupName;
    }

    public String getBackupPath() {
        return backupPath;
    }

    public void setBackupPath(String backupPath) {
        this.backupPath = backupPath;
    }

    public Double getBackupSize() {
        return backupSize;
    }

    public void setBackupSize(Double backupSize) {
        this.backupSize = backupSize;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getBackupTime() {
        return backupTime;
    }

    public void setBackupTime(Date backupTime) {
        this.backupTime = backupTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}